//
//  ChannelPostToolbar.m
//  __PRODUCTNAME__
//
//  Created by Hanlingyu on 16/09/12
//  Copyright (c) apple. All rights reserved.
//

#import "ChannelPostToolbar.h"
#import "ChannelPostStar.h"
#import "ChannelPostJoin.h"
@implementation ChannelPostToolbar

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"star"]) {
        ChannelPostStar *postStar = [ChannelPostStar modelWithDic:value];
        _star = postStar;
    } else if ([key isEqualToString:@"join"]) {
        ChannelPostJoin *postJoin = [ChannelPostJoin modelWithDic:value];
        _join = postJoin;
    }
}

@end
